package com.ruoyi.apis.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @Author Choi
 * @Date 2021/8/17
 */

@Getter
@Setter
@ApiModel(value = "案例留言参数")
public class ProjectMessageDTO {

    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String username;
    @ApiModelProperty(value = "联系电话", required = true)
    @NotBlank(message = "联系电话不能为空")
    @Pattern(regexp = "1[3-9][0-9]\\d{8}")
    private String mobile;
    @ApiModelProperty(value = "所属行业", required = true)
    @NotBlank(message = "所属行业不能为空")
    private String industry;
    @ApiModelProperty(value = "位置", required = true)
    @NotBlank(message = "位置不能为空")
    private String position;
    @ApiModelProperty(value = "联系时间", required = true)
    @NotBlank(message = "联系时间不能为空")
    private String time;
    @ApiModelProperty(value = "留言内容")
    private String content;
}
